﻿using HandyControl.Controls;
using HandyControl.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZYing.QPanel.Constants;

namespace ZYing.QPanel.Helpers
{
    public static class NotifyHelper
    {
        public static void Fail(string msg)
        {
            Growl.Error(msg, GrowlConstants.MainWindowGrowlToken);
        }

        public static void Success(string msg)
        {
            Growl.Success(msg, GrowlConstants.MainWindowGrowlToken);
        }
        public static void Info(string msg)
        {
            Growl.Info(msg, GrowlConstants.MainWindowGrowlToken);
        }
        public static void Warn(string msg)
        {
            Growl.Warning(msg, GrowlConstants.MainWindowGrowlToken);
        }
        public static void QuickTip(string msg)
        {
            Growl.Success(new GrowlInfo
            {
                Token = GrowlConstants.MainWindowGrowlToken,
                Message = msg,
                WaitTime = 1
            });
        }
    }
}
